<div class="zs-body" data-ng-init="formInit('gzwlkyxmsqb', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzwlkyxmsqb');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">项目管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">外来科研项目成果</a>
        </div>
        <div class="option">
            <!--<input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzwlkyxmsqb') && openWindow('edit');"/>-->
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzwlkyxmsqb', gzwlkyxmsqb.sRows[0]) && openWindow('edit')"/>
            <!--<input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzwlkyxmsqb')"/>-->
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="单位名称" ng-model="gzwlkyxmsqb.queryObject['dwmc']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="项目名称" ng-model="gzwlkyxmsqb.queryObject['xmmc']"/>
                </span>
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="带队负责人名称" ng-model="gzwlkyxmsqb.queryObject['ddfzrmc']"/>
                </span>
            </div>
            <div class="operation item" style="margin-top:7px;">
            	<input type="button" class="zs-btn orange" value="查询" 
            		ng-click="loadData('gzwlkyxmsqb')"/>
                <!--<a class="ope-1" ng-click="loadData('gzwlkyxmsqb')"></a>
                <a class="ope-2"></a>-->
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzwlkyxmsqb','allCheckbox');" />
                                    </th>
									<th>单位名称</th>
									<th>项目名称</th>
									<th>带队负责人名称</th>
									<th>带队负责人职务名称</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzwlkyxmsqb.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzwlkyxmsqb',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  单位名称 -->
            						<td>
                                        <a ng-click="editRow('gzwlkyxmsqb',r) && openWindow('edit');">
                                            <label ng-bind="r.dwmc"></label>
                                        </a>
                                   </td>
									<!--  项目名称 -->
            						<td>
                                        <a ng-click="editRow('gzwlkyxmsqb',r) && openWindow('edit');">
                                            <label ng-bind="r.xmmc"></label>
                                        </a>
                                   </td>
									<!--  带队负责人名称 -->
            						<td>
                                        <a ng-click="editRow('gzwlkyxmsqb',r) && openWindow('edit');">
                                            <label ng-bind="r.ddfzrmc"></label>
                                        </a>
                                   </td>
									<!--  带队负责人职务名称 -->
            						<td>
                                        <a ng-click="editRow('gzwlkyxmsqb',r) && openWindow('edit');">
                                            <label ng-bind="r.ddfzrzwmc"></label>
                                        </a>
                                   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzwlkyxmsqb'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="项目成果上传" width='860px' height='620px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<tr>
          						<td class="text" width="20%"><font color="red">*</font>单位名称</td>
                                <td class="left" width="30%" >
                                	
                                	<label ng-bind="gzwlkyxmsqb.editRow.dwmc"></label>
                                </td>
                                
                                <td class="text" width="20%"><font color="red">*</font>项目名称</td>
                                <td class="left" width="30%">
                                	
                                		
                                	<label ng-bind="gzwlkyxmsqb.editRow.xmmc"></label>
                                </td>
                            </tr>
                            
          					<tr>
                 
                                <td class="text" width="20%">带队负责人名称</td>
                                <td class="left" width="30%">
                                	
                                	<label ng-bind="gzwlkyxmsqb.editRow.ddfzrmc"></label>
                                </td>
                                
                                <td class="text" width="20%"><font color="red">*</font>带队负责人职务名称</td>
                                <td class="left" width="30%">
                                	
									<label ng-bind="gzwlkyxmsqb.editRow.ddfzrzwmc"></label>
                                	
                                </td>
                           </tr>
                        </tbody>
                        <table width="100%">
							<tr>
								<td colspan="5"  class="left">
									<input type="button" class="zs-btn"
									ng-click="addXmcg(gzwlkyxmsqb.editRow,'wlxmcg');"
									value="添加" /> 
									<input type="button" class="zs-btn"
									ng-click="delLocalRows(gzwlkyxmsqb.editRow.wlxmcg)"
									value="删除">
								</td>
							</tr>
							<tr>
								<td style="text-align: center" class="text" width="5%">
								<input id="allCheckbox" type="checkbox" 
                                        ng-click="selectAll('gzwlkyxmsqb.editRow.wlxmcg','allCheckbox');" /></td>
								<td width="20%" class="text" style="text-align: center">附件名称</td>
								<td width="20%" class="text" style="text-align: center">上传用户</td>
								<td width="20%" class="text" style="text-align: center">上传时间  </td>
								<td width="20%" class="text" style="text-align: center">备注 </td>
								<td width="20%" class="text" style="text-align: center">操作</td>
							</tr>
							<tr ng-repeat="r in gzwlkyxmsqb.editRow.wlxmcg">
								<td class="center" >
									<input type="checkbox" 
                                        ng-click="selectRow('gzwlkyxmsqb.editRow.wlxmcg',r);"
                                        ng-model="r.selected" /></td>
								<td><span>
										<input type="text" style="width: 95%" 
										class="zs-input" ng-model="r.fjmc" required />
									</span>
									
								</td>
								<td>
										<label ng-bind="r.scrymc"></label>
								</td>
								<td><label ng-bind="r.scsj | asDate | date:'yyyy-MM-dd'" ></label>
								</td>
								<td><span>
										<input type="text" style="width: 95%"
										class="zs-input" ng-model="r.bz" /></span>
								</td>
								
								<td>
									 <ag-Upload ng-model="r.fjbh" para="{}"></ag-Upload>
								</td>
							</tr>
						</table>
						<table>
							<tr>
	                           <td class="center">
	                                <input type="button" name="ok" value="保存" class="zs-btn c-red"
	                                    ng-click="formValidate(form) && save('gzwlkyxmsqb', gzwlkyxmsqb.editRow, closeWindow('edit'))"/>
	                                <input type="button" name="ok" value="取消" class="zs-btn c-green" 
	                                    ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                    	</table>
                </form>
            </div>
        </div>
    </div>
</div>